package com.cloud.user.service;

import java.util.ArrayList;
import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.cloud.user.model.User;

@Service
public class UserService {
	private final Logger logger = Logger.getLogger(getClass());

	public User find(String id) {
		logger.info("find start");
		User user = new User();
		user.setId(id);
		user.setName("李丽丽");
		return user;
	}

	public List<User> findAll(String[] ids) {
		List<User> list = new ArrayList<>();
		for (String id : ids) {
			User user = new User();
			user.setId(id);
			user.setName("李三");
			list.add(user);
		}
		return list;
	}
}
